<script>
	export default {
		onLaunch: function() {
			this.$zp.setTabBarBadge({
				index: 1,
				dot: true
			})
			this.$zp.setTabBarBadge({
				index: 2,
				text: 'new'
			})
		},
		onShow: function() {
		},
		onHide: function() {
		}
	}
</script>

<style lang="scss">
	@font-face {
		font-family: 'iconfont';  /* project id 1184559 */
		src: url('//at.alicdn.com/t/font_1184559_dzfp7bj9b2.eot');
		src: url('//at.alicdn.com/t/font_1184559_dzfp7bj9b2.eot?#iefix') format('embedded-opentype'),
		url('//at.alicdn.com/t/font_1184559_dzfp7bj9b2.woff2') format('woff2'),
		url('//at.alicdn.com/t/font_1184559_dzfp7bj9b2.woff') format('woff'),
		url('//at.alicdn.com/t/font_1184559_dzfp7bj9b2.ttf') format('truetype'),
		url('//at.alicdn.com/t/font_1184559_dzfp7bj9b2.svg#iconfont') format('svg');
	}
	page{
		font-size: $font-size-base;
		color: $content-color;
		height: 100%;
	}
	uni-button[disabled]:not([type]), uni-button[disabled][type=default]{
		color: inherit;
		background-color: inherit;
	}
	.iconfont{
		font-family: 'iconfont';
	}
	.bg-primary{
		background-color: $primary-color!important;
		color: #fff!important;
		&::after{
			border: 0;
		}
	}
	.bg-info{
		background-color: $info-color!important;
		color: #fff!important;
		&::after{
			border: 0;
		}
	}
	.bg-success{
		background-color: $success-color!important;
		color: #fff!important;
		&::after{
			border: 0;
		}
	}
	.bg-warning{
		background-color: $warning-color!important;
		color: #fff!important;
		&::after{
			border: 0;
		}
	}
	.bg-error{
		background-color: $error-color!important;
		color: #fff!important;
		&::after{
			border: 0;
		}
	}
	.primary{
		color: $primary-color!important;
	}
	.info{
		color: $info-color!important;
	}
	.success{
		color: $success-color!important;
	}
	.warning{
		color: $warning-color!important;
	}
	.error{
		color: $error-color!important;
	}
	.zp-loading-icon{
		display: inline-block;
		animation: spin linear infinite 1s;
	}
	@keyframes spin{
		0%{transform:rotate(0deg)},
		100%{transform:rotate(359deg)}
	}
</style>
